/* 
 * Stylesheet for Mariann K Nagy's Google Resume.
 * 
 * Author: ccalo@google.com (Chris Calo)
 * 
 * This page uses a vertical rhythm of 20px. That is, every element's total
 * height (content height + vertical padding + vertical margin + vertical
 * border) must sum to a multiple of 20px to stay in rhythm.
 */

@import url(//fonts.googleapis.com/css?family=Source+Sans+Pro:700|Armata|Open+Sans:300,400,700&subset=latin,latin-ext);

.loading:after {
  content: "Loading…";
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  padding: 10em;
  background: #fff;
  font-size: 20px;
  text-align: center;
}

html {
  color: #666;
  font-family: Open Sans, sans-serif;
  font-weight: 300;
  font-size: 13px;
  line-height: 20px;
}

html, body {
  margin: 0;
  padding: 0;
}

.noscroll {
  overflow: hidden;
}

.mask {
  position: fixed;
  z-index: 1000;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(0, 0, 0, 0.8);
  overflow: auto;
  padding: 72px;
  transition: padding 250ms;
}

.mask img {
  display: block;
  max-width: 100%;
  margin: 0 auto;
}

.mask .note {
  padding: 1em;
  text-align: center;
  color: #fff;
  cursor: default;
}

@media screen and (max-width: 649px) {
  .mask {
    padding: 12px;
  }
}

/* Data loader directive. */
data {
  display: none;
}

ul, ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

blockquote {
  font-family: Open Sans, sans-serif;
  font-weight: 300;
  font-style: italic;
  font-size: 14px;
  line-height: 20px;
  background: #f3f3f3;
  border: solid 1px #eee;
  color: #999;
  margin: 20px 0;
  padding: 20px 25px;
  overflow: hidden;
  position: relative;
}

blockquote:before {
  bottom: 0;
  content: "\201C";
  font-size: 10.0em;
  font-weight: bold;
  left: 0;
  line-height: 1em;
  opacity: 0.15;
  overflow: visible;
  position: absolute;
  right: 0;
  text-align: left;
  top: 0;
  z-index: -1;
}

h1, h2, h3, h4, h5, h6, p {
  font-size: 1.0em;
  margin: 0;
  padding: 0;
}

h1 {
  font-family: Source Sans Pro, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 20px;
  /* padding-bottom + padding-top = 20px */
  padding-bottom: 6px;
  padding-top: 14px;
}

.header h1 {
  padding-bottom: 0;
  padding-top: 0;
}

h2 {
  font-family: Armata, sans-serif;
  text-transform: uppercase;
  /* (from above) font-size: 13px; */
  color: #999;
  font-weight: normal;
  letter-spacing: 0.25em;
  /* padding-bottom + padding-top = 20px */
  padding-top: 14px;
  padding-bottom: 6px;
}

.header h2 {
  padding-top: 0;
  padding-bottom: 0;
}

h3 {
  font-family: Open Sans, sans-serif;
  font-weight: 300;
  text-transform: uppercase;
  
  background-color: #eee;
  background-image:
    -webkit-repeating-linear-gradient(
      45deg, transparent 50%, #ddd 50%,
      transparent 51%, transparent);
  background-image:
    -moz-repeating-linear-gradient(
      45deg, transparent 50%, #ddd 50%,
      transparent 51%, transparent);
  background-image:
    repeating-linear-gradient(
      45deg, transparent 50%, #ddd 50%,
      transparent 51%, transparent);
  background-size: 8px 8px;
  
  font-size: 18px;
  line-height: 20px;
  margin-bottom: 10px;
  margin-left: -10px; /* same as padding */
  margin-right: -10px; /* same as padding */
  margin-top: 30px;
  padding: 10px;
}

h4 {
  font-family: Open Sans, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #444;
  line-height: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}

p {
  margin-bottom: 20px;
}

p:last-child {
  margin-bottom: 0;
}

body {
  margin: 0;
  background-color: #eee;
  background-image:
    -webkit-repeating-linear-gradient(
      45deg, transparent 50%, #ddd 50%,
      transparent 51%, transparent);
  background-image:
    -moz-repeating-linear-gradient(
      45deg, transparent 50%, #ddd 50%,
      transparent 51%, transparent);
  background-image:
    repeating-linear-gradient(
      45deg, transparent 50%, #ddd 50%,
      transparent 51%, transparent);
  background-size: 8px 8px;
}

a, :link, :visited {
  color: #c00;
  text-decoration: none;
  font-weight: normal;
}

a:hover,
:link:hover,
:visited:hover {
  background-color: rgba(204, 0, 0, 0.05);
  border-bottom: 1px solid #c00;
  margin-bottom: -1px;
}

a:focus,
:link:focus {
  outline: none;
  box-shadow: 0 0 0 4px #c7dcfc;
  background-color: #c7dcfc;
}

.container {
  background: #fff;
  margin: 0 auto;
  max-width: 844px;
  overflow: hidden;
  -webkit-box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
  box-shadow: 0 0 50px rgba(0, 0, 0, 0.2);
}

/*
 * Add the class "grid" to any element to show the grid.
 */
.grid {
  background: #fff url(grid.png) repeat top left; /* grid for measuring vertical rhythm */
}

.sidebar {
  width: 252px;
  float: left;
}

.sidebar-gutter {
  padding: 20px;
  padding-left: 54px;
  box-sizing: border-box;
}

.sidebar-link {
  display: block;
  margin: 10px 0;
  line-height: 20px;
}

.main {
  margin-left: 252px;
}

.main-gutter {
  padding: 20px;
  padding-right: 54px;
}

.header {
  background: #fff;
  /*position: fixed;*/
  border-bottom: #eee 1px solid;
  margin-bottom: -1px;
}

.photo {
  /* height + margin-bottom = n*20px */
  height: 288px;
  margin-bottom: 12px;
  width: 180px;
  border-radius: 6px;
  overflow: hidden;
  border: 6px solid #fff;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  margin: -6px;
}

.photo img {
  max-width: 100%;
  height: auto;
}

.project-head {
  margin: 10px 0;
}

.project-head .time {
  /* (from above) font-size: 13px; */
  line-height: 20px; /* same as h4 */
  display: block;
}

.project-desc {
  margin-bottom: 20px;
}
  
.tags {
  font-family: Armata, sans-serif;
  font-size: 10px;
  line-height: 20px;
}

.tags li {
  white-space: nowrap;
}

.headline {
  line-height: 20px;
  margin-bottom: 20px;
  color: #aaa;
  font-family: Open Sans, sans-serif;
  font-size: 16px;
  font-weight: 300;
  letter-spacing: -0.01em;
}

.project {
  padding: 20px 0;
}

.tags li {
  display: inline;
  margin-right: 12px;
  text-transform: uppercase;
}

.project-links {
  margin-bottom: 40px;
}

.links {
  font-size: 12px;
}

.links li {
  display: inline;
  margin-right: 1em;
}

.caption {
  color: #999;
  font-size: 11px;
  line-height: 20px;
  margin-top: 0;
  margin-bottom: 20px;
}

.footer {
  font-size: 12px;
  color: #aaa;
}

@media screen and (max-width: 649px) {
  .sidebar {
    display: none;
  }
  
  .main {
    margin-left: 0;
  }
  
  .main-gutter {
    padding-left: 54px;
  }
}

.screenshot {
  max-width: 100%;
}

.screenshot-container,
.screenshot-container:hover {
  position: relative;
  display: block;
  margin: 6px 0 14px;
  border: 1px solid #eee;
  background: none;
  cursor: pointer;
}

.screenshot-container:hover:after {
  content: "";
  position: absolute;
  background: #000;
  opacity: 0.10;
  top: 0; right: 0; bottom: 0; left: 0;
  mouse-events: none;
}

/* Pins the sidenav so it's always visible while scrolling down the page. */
.pinned {
  position: fixed;
  top: 0;
  bottom: 0;
  overflow: auto;
  padding-bottom: 40px;
}